#{extends 'main.html' /}
#{set title:'View Request' /}



ID: ${req.id} Type: ${req.type} Title: ${req.title}
<br/>


<form action="@{Ratings.addRating()}" method = "GET">

Rating: <select name="rating" id="rating">

	<option value = "Low">Low</option>
	<option value = "Medium">Medium</option>
	<option value = "High">High</option>
	 </select>

<a href="@{Requests.viewRequest(request.id)}"><input type="submit" value="Submit Comment" /></a>

<input type = "hidden" id = "type" name = "type" value ="Request">
<input type = "hidden" id = "modelID" name = "modelID" value ="${request.id}">
<input type = "hidden" id = "username" name = "username" value ="${Security.connected()}">

</form>



<form action="@{Comments.addComment()}" >

<label> Comment: </label>

<br />
<textarea rows="2" cols="60" name="content" id="content">
</textarea>
<br />


<a href="@{Requests.viewRequest(request.id)}"><input type="submit" value="Submit Comment" /></a>

<input type = "hidden" id = "type" name = "type" value ="Request">
<input type = "hidden" id = "modelID" name = "modelID" value ="${request.id}">
<input type = "hidden" id = "username" name = "username" value ="$(Security.connected()}">

</form>
